https://leetcode.cn/problems/running-sum-of-1d-array/submissions/671975334/

class Solution {
public:
	vector<int> runningSum(vector<int>& nums) {
		int len=nums.size();
		for(int i=1;i<len;i++){
			nums[i]+=nums[i-1];
		}
		return nums;
	}
};
